package de.ttf.ts.control.impl.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import de.ttf.ts.model.Club;

public interface ClubDao extends BaseDao<Club> {

    @Query("from Club c left join fetch c.players p left join fetch p.teams t left join fetch t.playerOne left join fetch t.playerTwo")
    List<Club> findClubsPlayers();

}
